<?php 
include('../common/_const.php');
include('../common/common.php');
include('../common/checksession.php');
checksession("../index.php");
include('../../inc/conn.php');

$gurl=$_SERVER['HTTP_REFERER'];
$aid =$_GET['id'];
isnum($aid,"文档错误","catalog_main.php");
preg_match ("/[0-9]+/",$gurl,$temp_aid);

if($temp_aid[0]!=$aid){
	ShowMsg_h("操作失败!","../moduls/article_edit.php?aid=".$aid);
	exit;
}

$db=db_connect();//数据库连接
$sql=update_sql("`".PRETABLE."arcmain`","`litpic`=''","`id`='".$aid."'");

if($db->query($sql)){
	ShowMsg_h("操作成功!","../moduls/article_edit.php?aid=".$aid);
}else{
	ShowMsg_h("操作失败!","../moduls/article_edit.php?aid=".$aid);
	exit;
}
$db->close();

?>